package java_作业4;

class Dog extends Animal implements Afraid {
    @Override
    public void eat() {
        System.out.println("狗吃骨头");
    }

    @Override
    public void escape() {
        System.out.println("狗害怕了，跑掉了");
    }

    @Override
    public void makeSounds() {
        System.out.println("狗害怕时发出呜咽声");
    }
}
